package com.isunland.managesystem.ui;

import android.support.v4.app.Fragment;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import com.isunland.managesystem.R;

public class CompanyForumPictureActivity extends SingleFragmentActivity {
  protected void onCreate(android.os.Bundle savedInstanceState) {

    requestWindowFeature(Window.FEATURE_NO_TITLE);
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
        WindowManager.LayoutParams.FLAG_FULLSCREEN);
    super.onCreate(savedInstanceState);
    Toolbar toolbar = getToolBar();
    View layout = findViewById(R.id.appbar);
    if (layout != null) layout.setVisibility(View.GONE);

    //百度推送服务.
    //		PushManager.startWork(getApplicationContext(),PushConstants.LOGIN_TYPE_API_KEY,ApiConst.API_KEY);

    //deviceid,用于注册友盟测试机,使用一次后注释掉.
    //		String info= MyUtils.getDeviceInfo(this);
    //		LogUtil.i("deviceInfo="+info);
    //友盟测试服务,测试完成后去掉.
    //		MobclickAgent.setDebugMode( true );

  }

  @Override protected Fragment createFragment() {
    String pictureA = getIntent().getStringExtra(CompanyForumPictureFragment.EXTRA_PICTUREA);
    String pictureB = getIntent().getStringExtra(CompanyForumPictureFragment.EXTRA_PICTUREB);
    String pictureC = getIntent().getStringExtra(CompanyForumPictureFragment.EXTRA_PICTUREC);
    String pictureD = getIntent().getStringExtra(CompanyForumPictureFragment.EXTRA_PICTURED);
    String type = getIntent().getStringExtra(CompanyForumPictureFragment.TYPE);
    return CompanyForumPictureFragment.newInstance(pictureA, pictureB, pictureC, pictureD, type);
  }
}
